package strings

// UserService Expected
const (
	AuthUserExistedCode                        = 10001
	AuthUserExisted                            = "用户已存在，请更换用户名或尝试登录！"
	UserNotExistedCode                         = 10002
	UserNotExisted                             = "用户不存在"
	AuthUserLoginFailedCode                    = 10003
	AuthUserLoginFailed                        = "用户信息错误，请检查账号密码是否正确"
	UserLoginCacheCodeValidFailedCode          = 10004
	UserLoginCacheCodeValidFailed              = "短信验证码错误,请重新输入验证码"
	UserRegisterCacheCodeValidFailedCode       = 10005
	UserRegisterCacheCodeValidFailed           = "注册验证码错误"
	UserVideoCollectionRelationExistsErrorCode = 10006
	UserVideoCollectionRelationExistsError     = "您已经收藏该视频了"
)

// Follow Expected Error
const (
	UnableToRelateYourselfErrorCode = 100101
	UnableToRelateYourselfError     = "无法关注你自己"
	AlreadyFollowingErrorCode       = 100102
	AlreadyFollowingError           = "无法关注已关注的人"
)

// Bad Request
const (
	ParamsErrorCode = 40001
	ParamsError     = "请求参数错误，请重新输入!"
)

const (
	UserNotLoginErrorCode = 40101
	UserNotLoginError     = "用户未登录"
)

const (
	PostFileNameInvalidErrorCode = 40002
	PostFileNameInvalidError     = "文件不存在，请重新上传。"
)

const (
	IllegalFileTypeErrorCode = 40003
	IllegalFileTypeError     = "文件类型非法"
)

const (
	UserNotAuthorErrorCode = 40301
	UserNotAuthorError     = "非法操作，拒绝访问!"
)

const (
	NotFoundErrorCode = 40401
	NotFoundError     = "资源不存在，请重新输入!"
)

const (
	RateLimitHitErrorCode = 42900
	RateLimitHit          = "请求过快"
)

// InternalServiceError Server Internal Error
const (
	InternalServiceError = "系统繁忙"
)

// RedisOperation Error
const (
	RedisSetValueErrorCode    = 50100
	RedisKeyNotFoundErrorCode = 50101
	RedisDelValueErrorCode    = 50102
	RedisOperationErrorCode   = 50109
)

// DataBaseOperation Error
const (
	DataBaseInsertErrorCode = 50200
	DataBaseDeleteErrorCode = 50201
	DataBaseSelectErrorCode = 50202
	DataBaseUpdateErrorCode = 50203
)

const (
	UUIDGenerateErrorCode           = 50900
	VariableTypeConversionErrorCode = 50901
)

const (
	EsSearchFailedError = 50204
)

const (
	CensorServerFailedError = 50205
)